package com.kws.system.api;

import com.kws.common.core.constant.ServiceNameConstants;
import com.kws.common.core.domain.R;
import com.kws.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author :yxy
 * @date : 2024/10/31
 */
@FeignClient(contextId = "remoteCompanyMessageService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteCompanyMessageService {
    @GetMapping("/merchant/check/checkLoginCompanyByUserId/{userId}")
    R<Boolean> checkLoginCompanyByUserId(@PathVariable("userId") Long userId);
}
